Historique : Bac à sable

Gestion du personnel

La gestion du personnel est une tâche indispensable à toutes organisations ou structures devant

Mon Code

       #region Verif Responsable suivi            
           if (target.Attributes.Contains (CrmQuote.Lookups.gcd_responsablesuiviid)) {
               var gcd_ResponsableSuiviIdRef = record.GetAttributeValue<EntityReference> (CrmQuote.Lookups.gcd_responsablesuiviid);
               var conService = CrmServiceFactory.Instance.Resolve<IInterlocuteurService> (Context.UserOrganizationService, Context.AdminOrganizationService, false);
               var conResult = conService.Get (gcd_ResponsableSuiviIdRef.Id, new [] { CrmContact.OptionSets.gcd_typecode });
               if (conResult != null) {
                   if (target.Attributes.Contains(CrmContact.OptionSets.gcd_typecode))
                   {
                       if (conResult.GetAttributeValue<OptionSetValue> (CrmContact.OptionSets.gcd_typecode) != null) {
                           if (conResult.GetAttributeValue<OptionSetValue> (CrmContact.OptionSets.gcd_typecode).Value == CrmContact.OptionSets.gcd_typecodeValues.Option2_Beneficiaire)
                               throw new FunctionalException ("Le responsable de suivi du bon de commande ne peut pas être un bénéficiaire.");
                       }
                   }
               }
           }
           #endregion

voici la suite ici se trouve le reste de l'explication


Excellent !!

titre

ma nouvelle page


Mon test à moi !


Tranquille

Niveau 1

Niveau 2